package com.joysuch.wwyt.workflow.service;

import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.workflow.bean.*;
import com.joysuch.wwyt.workflow.entity.WorkFlowOption;
import com.joysuch.wwyt.workflow.entity.WorkFlowOptionType;
import com.joysuch.wwyt.workflow.entity.WorkFlowTask;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface WorkFlowOptionService {


    List<WorkFlowOptionType> getOptionTypeList();

    List<WorkFlowOption> getOptionList(Long typeId);

    List<WorkFlowOption> getOptionList(String typeName);

    WorkFlowOptionType saveOptionType(WorkFlowOptionTypeBean bean);

    WorkFlowOption saveOption(WorkFlowOptionBean bean);

    WorkFlowOptionType getOptionType(Long id);

    WorkFlowOption getOption(Long id);

    void deleteOptionType(Long id);

    void deleteOption(Long id);

    ResultBean addOptions(List<WorkFlowOptionBean> workFlowOptionBeans, Long optionType);

    ResultBean pageOptionType(Pageable page, String optionType);
}
